<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>head</title>
</head>
<body>
<%
	Object test=null;
	Cookie[]cookies=request.getCookies();
	for(int i=0;cookies!=null&&i<cookies.length;i++)
	{
		if("userbean".equals(cookies[i].getName())){
			test=cookies[i].getValue();
			break;
		}
	}
	if(test==null){
%>
	<jsp:forward page="loginin.jsp"></jsp:forward>
<% return;}%>
    <div align="center" style="color: white;">
        <span style="font-size: 3vw;">个人通信录</span>
    </div>
    <div align="right"  style="color: white;">
        <span>欢迎你，</span>
        <%out.print(test); %>
    </div>
</body>
</html>